package com.android.jixin.channel.base;

import com.android.jixin.channel.bean.Contributor;

import java.util.List;

import retrofit2.http.GET;
import retrofit2.http.Path;
import rx.Observable;

/**
 * Author:  ljo_h
 * Date:    2016/8/10
 * Description:
 */
public interface RetrofitService {
    /*@FormUrlEncoded
    @POST("http://120.199.142.170:7112/Server/api.ashx")
    Observable<LoginResult> login(@Field("Action") String Action, @Field("uname") String uname, @Field("pwd") String pwd);*/

    @GET("/repos/{owner}/{repo}/contributors")
    Observable<List<Contributor>> contributors(@Path("owner") String owner, @Path("repo") String repo);
}
